package com.lanxin.stu.mapstruct;

import com.lanxin.stu.dto.StudentAddDTO;
import com.lanxin.stu.dto.StudentDTO;
import com.lanxin.stu.entity.Student;
import com.lanxin.stu.vo.StudentVO;
import org.mapstruct.Mapper;

/**
 * @author cyh
 * @create 2025-09-17 16:12
 */
@Mapper(componentModel = "spring")
public interface StudentMapStruct {

    Student toAddEntity(StudentAddDTO studentAddDTO);
    Student toEntity(StudentDTO studentDTO);
    StudentVO toVO(Student student);
}
